﻿using Enter.Admin.Enums;
using Enter.Admin.Utils;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;

namespace Enter.Admin.Dtoes
{
    /// <summary>
    /// 员工
    /// </summary>
    public class EmployModel
    {
        [Excel(HeaderName = "序号")]
        public long Id { get; set; }
        public long RoleId { get; set; }
        [Excel(HeaderName = "角色名称")]
        public string RoleName { get; set; } = string.Empty;
        [Excel(HeaderName = "用户名")]
        public string UserName { get; set; } = string.Empty;
        public string Password { get; set; } = string.Empty;
        [Excel(HeaderName = "姓名")]
        public string TrueName { get; set; } = string.Empty;
        [Excel(HeaderName = "邮箱")]
        public string Email { get; set; } = string.Empty;
        [Excel(HeaderName = "手机号码")]
        public string Phone { get; set; } = string.Empty;
        [Excel(HeaderName = "状态")]
        [JsonConverter(typeof(StringEnumConverter))]
        public EnumEmployState State { get; set; }
        [Excel(HeaderName = "创建时间")]
        public DateTime CreateTime { get; set; }
        [Excel(HeaderName = "更新时间")]
        public DateTime UpdateTime { get; set; }
        public bool IsDeleted { get; set; }
    }
}
